package com.workcell.workdata.im.model.vo;

import com.workcell.workdata.im.entity.GroupNotice;

import java.util.Date;

public class NoticeVO {
    private Long id;

    private Long uid;

    private String text;

    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public static NoticeVO of(GroupNotice notice){
        NoticeVO vo = new NoticeVO();
        vo.uid = notice.getUid();
        vo.text = notice.getText();
        vo.id = notice.getId();
        vo.createTime = notice.getCreateTime();
        return vo;
    }
}
